package cn.sccdlg.mybatisbatchupdate.service.impl;

import cn.sccdlg.mybatisbatchupdate.dao.SysUserDao;
import cn.sccdlg.mybatisbatchupdate.model.SysUserEntity;
import cn.sccdlg.mybatisbatchupdate.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 用户信息表Service实现类
 * @author rao
 * @date 2020-08-22 22:10:21
 */
@Service
public class SysUserServiceImpl implements SysUserService {
    @Autowired
    private SysUserDao sysUserDao;

    @Override
    public SysUserEntity queryObject(Integer id) {
        return sysUserDao.queryObject(id);
    }

    @Override
    public List<SysUserEntity> queryList(Map<String, Object> map) {
        return sysUserDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return sysUserDao.queryTotal(map);
    }

    @Override
    public int save(SysUserEntity sysUser1) {
        return sysUserDao.save(sysUser1);
    }

    @Override
    public int update(SysUserEntity sysUser1) {
        return sysUserDao.update(sysUser1);
    }

    @Override
    public int delete(Integer id) {
        return sysUserDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[]ids) {
        return sysUserDao.deleteBatch(ids);
    }
}
